package org.jeecg.modules.zonglzp.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zonglzp.entity.Customer;
import org.jeecg.modules.zonglzp.entity.ExcelEntity;

import java.util.List;

public interface CustomerService {

    //查询客户列表
    IPage<Customer> getCustomerlist(Page<Customer> page, String userid, String customerCode, String customerName);


    //根据员工编号查询员工
    Customer getyuangongbycode(String customerCode);


    //查询未量体员工
    IPage<Customer> getweiliangtiyuangong(Page<Customer> page, String departId);

    //往花名册表里插入数据
    void sethmc(Customer title, String departId);


    //先把老的花名册全部删了
    void deletedeparthmc(String departId2);

    //查询标题内容
    List<Customer> gettitles(String departId);

    //查询花名册内容
    IPage<Customer> gethmclist(Page<Customer> page, String departId);


    //删除花名册中的员工
    int deleteCustomer(int id);


    //编辑花名册中的员工
    int updateCustomer(Customer customer);

    //设置花名册中下载模板中 模板excel中的数据
    List<ExcelEntity> getmobandata();

    //导入的excel循环 一个个插入表中
    void importhmc(ExcelEntity excelEntity, String departId, int parentId);

    int cleardepart(String departId);

    int getsexNumber(String departId, int i);
}
